﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="DepartmentIndex.aspx.cs" Inherits="Module_DepartmentManger_DepartmentIndex" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <ext:PageManager ID="PageManager1" runat="server"  AutoSizePanelID="Panel1"/>

    <ext:Panel ID="Panel1" runat="server" BodyPadding="0px" EnableBackgroundColor="false" ShowBorder="false" ShowHeader="false" Title="Panel" Layout="Fit">
        <Toolbars>
            <ext:Toolbar  runat="server">
                <Items >
                    <ext:Button ID="Button1" runat="server" Text="新增部门">
                    </ext:Button>
                    <ext:Button ID="BtnDel" runat="server" Text="删除部门" OnClick="BtnDel_Click" ConfirmText="是否删除选中的部门">
                    </ext:Button>
                    <ext:Button ID="Button3" runat="server" Text="查找" Hidden="true">
                    </ext:Button>
                    <ext:Button ID="BtnReflash" runat="server" Text="刷新" OnClick="BtnReflash_Click">
                    </ext:Button>

                </Items>
            </ext:Toolbar>
        </Toolbars>
        <Items>
            <ext:Grid ID="Grid1" runat="server" EnableCheckBoxSelect="true"  AllowPaging="true" 
                EnableRowNumber="true"  ShowBorder="false"  ShowHeader="false" Title="Grid"  DataKeyNames="DepartmentID"
                OnRowCommand="Grid1_RowCommand" OnPageIndexChange="Grid1_PageIndexChange">
                <Columns>
                    <ext:LinkButtonField Text="修改部门信息" CommandName="UpdateDeInfo" />
                    <ext:LinkButtonField Text="修改部门负责人" CommandName="UpdateHead" />
                    <ext:BoundField HeaderText="部门名称" DataField="DepartmentName" />
                    <ext:BoundField HeaderText="部门负责人" DataField="StaffName" />
                    <ext:BoundField HeaderText="部门口号" DataField="Slogan" />
                    <ext:BoundField HeaderText="队名" DataField="TeamName" />
                    <ext:BoundField HeaderText="部门创建时间" DataField="Creatime" />
                    <ext:BoundField HeaderText="备注" DataField="Remark" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>


    <ext:Window ID="Window1" runat="server" Height="400px" IsModal="true" Popup="false" EnableIFrame="true"
      OnClose="Window1_Close"  Title="Window" Width="600px">
    </ext:Window>


    <ext:Window ID="Window2" runat="server" Height="500px" IsModal="true" Popup="false" EnableIFrame="true"
        Title="Window" Width="350px">
    </ext:Window>

    </form>
</body>
</html>
